package com.dlz.systemshop.service.impl;

import com.dlz.systemshop.service.MailService;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.stereotype.Service;

/**
 * @author 董熠涛
 * @date 2025/4/27 14:04
 */
@Service
public class MailServiceImpl implements MailService {
    @Override
    public boolean sendSimpleMail(String to, String subject, String content) {
        if (to == null) {
            return false;
        }
        SimpleMailMessage mail = new SimpleMailMessage();
        mail.setTo(to);
        mail.setSubject(subject);
        return true;
    }
}
